<template>
    <div id="createTest" class="container">
        <div class="wrapper">
            <div class="left">
                <div class="header">
                    <slot name="header"></slot>
                </div>
                <slot name="list"></slot>

            </div>
            <div class="right">
                <div class="controllers">
                    <slot name="controllers"></slot>
                </div>
                <div class="form">
                    <slot name="panel"></slot>
                </div>
            </div>
        </div>
    </div>
</template>

<script lang="ts" setup>
import { ref } from "vue"

</script>
<style lang="less" scoped>
@fontColor: #a6a6a6;
.container {
    min-width: 992px;
  height: 100%;
  width: 100%;
  background-color: #f2f4f7;
  padding: 5vh 0;
  overflow: auto;
  .wrapper {
    width: 80%;
    height: 90%;
    // background-color: aliceblue;
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;

    .left {
      width: 25%;
      height: 100%;
      background-color: white;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      overflow: auto;
      padding-top: 50px;
      &>div>div{
        .de-btn{
          float: right;
          font-size: 16px;
          display:none;
          line-height: 30px;
          color:#a6a6a6;
        }
      }
      &>div>div:hover{
        background-color: aliceblue;
        .de-btn{
          display: inline;
        }
      }
      .header{
        border-radius: 10px;
        height: 50px;
        color: #a6a6a6;
        font-size: 14px;
        text-align: left;
        line-height: 65px;
        padding: 0 20px;
        user-select: none;
        position: absolute;
        top: 0;
        left: 0;
        background: white;
      }
      .cate{
        height: 30px;
        color: black;
        font-size: 12px;
        font-weight: bold;
        line-height: 30px;
        padding: 0 20px;
        cursor: pointer;
      }
      .quest{
        height: 30px;
        color:@fontColor;
        font-size: 13px;
        line-height: 30px;
        padding: 0 20px;
        cursor: pointer;
      }
    }
    .right {
      width: 72%;
      height: 100%;
      // background-color: white;
      & > div {
        border-radius: 10px;
      }
      .controllers {
        height: 12%;
        width: 100%;
        background-color: white;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0 30px;
        .text {
          color: @fontColor;
        }
        .el-button {
          margin-left: 20px;
        }
      }
      .form {
        position: relative;
        margin-top: 4%;
        // height: 80%;
        width: 100%;
        background-color: white;
        text-align: center;
        // line-height: 500px;
        color: @fontColor;
        padding:30px;
        .hint{
            color: @fontColor;
            font-size: 14px;
        }
        .item{
          // height: 40px;
          text-align: left;
          color: black;
          line-height: 40px;
        //   margin: 10px 0;
          .input{
            // padding: 0 20px;
            padding-left: 0%;
            width: 60%;
            margin-bottom: 10px;
          }
          .selection{
            // padding-left: 20px;
            height: 40px;
          }
        }
        .foot{
          padding-top:10px;
        }
      }
    }
  }
}

.input-item{
    width: 100%;
    display: flex;
}
</style>
